﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Levels : MonoBehaviour
{
    public GameObject panel;
    public Text text;
    public void OnHit(string content)
    {
        panel.SetActive(true);
        text.text = content;
        Canvas.willLose = true;
        Time.timeScale = 0;
    }
    public void MouseOver(string content) {
        panel.SetActive(true);
        text.text = content;
    }
    public void MouseExit()
    {
        panel.SetActive(false);
    }

}
